package merchants

// 表名也是cache的tag
var TableName = "merchants"

// 商家
type Merchants struct {
	Id int64

	PartnerSign string `xorm:"varchar(64) notnull unique(partner_merchant_sign) 'partner_sign'"`
	Sign        string `xorm:"varchar(64) notnull unique(partner_merchant_sign) 'Sign'"`

	MerchantName string `xorm:"varchar(64) notnull unique 'merchant_name'"`

	Avatar string `xorm:"varchar(64) null 'avatar'"`

	Summary string `xorm:"varchar(128) null 'summary'"`

	AddAdminId int64  `xorm:"integer(11) notnull 'add_admin_id'"`
	AddTime    int64  `xorm:"integer(11) notnull 'add_time'"`
	AddIp      string `xorm:"char(15) notnull 'add_ip'"`

	Status int `xorm:"tinyint(4) null default(0) 'status'"`
}
